package com.dianping.cat.consumer.problem.model.entity;

import com.dianping.cat.consumer.problem.model.BaseEntity;
import com.dianping.cat.consumer.problem.model.IVisitor;





public class GraphTrend
  extends BaseEntity<GraphTrend>
{
  private int m_duration;
  private String m_fails;

  public GraphTrend() {}

/* 18 */   public GraphTrend(int duration) { this.m_duration = duration; }




/* 23 */   public void accept(IVisitor visitor) { visitor.visitGraphTrend(this); }



  public boolean equals(Object obj) {
/* 28 */     if (obj instanceof GraphTrend) {
/* 29 */       GraphTrend _o = (GraphTrend)obj;

/* 31 */       if (getDuration() != _o.getDuration()) {
/* 32 */         return false;
      }

/* 35 */       return true;
    }

/* 38 */     return false;
  }


/* 42 */   public int getDuration() { return this.m_duration; }



/* 46 */   public String getFails() { return this.m_fails; }






  public void mergeAttributes(GraphTrend other) {
/* 60 */     assertAttributeEquals(other, "graph-trend", "duration", Integer.valueOf(this.m_duration), Integer.valueOf(other.getDuration()));

/* 62 */     this.m_fails = other.getFails();
  }

  public GraphTrend setDuration(int duration) {
/* 66 */     this.m_duration = duration;
/* 67 */     return this;
  }

  public GraphTrend setFails(String fails) {
/* 71 */     this.m_fails = fails;
/* 72 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/problem/model/entity/GraphTrend.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */